calculate inductance